package springboot_insert.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import springboot_insert.entity.InsertInfo;
import springboot_insert.service.InsertService;

@RestController
@RequestMapping(value = "/main")
public class InsertController {
	@Autowired
	private InsertService insertService;
	@PostMapping(value = "/insert")
	boolean insertInfo(InsertInfo in) {
		return insertService.insertInfo(in);
	}
}
